<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    xmlns:h="http://java.sun.com/jsf/html"
    template="/WEB-INF/templates/default.xhtml">
    <ui:define name="content">
    
        <h:form>

<p:growl id="growl" globalOnly="true" showDetail="true" sticky="true" />  




    

		<p:panelGrid id="userData" columns="3">
		 
		    <h:outputText value="Name:" />
		    <p:inputText id="name" value="#{userServices.user.name}"></p:inputText>		 	
		 	<p:message for="name" style="color:red"/>
		 
		 
		    <h:outputText value="Age:" />
		    <p:inputText id="age" value="#{userServices.user.age}"></p:inputText>
		 	<p:message for="age" style="color:red"/>

		</p:panelGrid>
		<br></br>
		
		<p:commandButton id="back" value="Submit" action="#{userServices.action()}" update="growl, userData"/>


            
        </h:form>
    
    
    </ui:define>
</ui:composition>
